package com.guldan.jaina.provider;

import java.util.List;

import com.guldan.core.dubbo.client.ResponseDTO;
import com.guldan.core.search.Pagination;
import com.guldan.jaina.dto.area.AreaDTO;
import com.guldan.jaina.dto.organization.OrganizationDTO;
import com.guldan.jaina.dto.organization.OrganizationSearchDTO;

/**
 * Created by Silas.
 * Date: 2016/11/7
 * Time: 22:49
 */
public interface IOrganizationProvider {

    //获取单个组织，传入：Organizationid
    ResponseDTO<OrganizationDTO> get(Integer var1);

    //新增/更新单个组织，传入：OrganizationDTO
    ResponseDTO<OrganizationDTO> save(OrganizationDTO var1);

    //删除单个组织，传入：Organizationid
    ResponseDTO<Boolean> delete(Integer var1);

    //分页获取组织信息列表，传入：检索DTO
    ResponseDTO<Pagination<OrganizationDTO>> list(OrganizationSearchDTO var1);

    /**
     * 批量导入Organization
     * @param list
     * @return
     */
    ResponseDTO<Boolean> batchImport(List<OrganizationDTO> list);
}
